Skip to content

AKO-565 Preserve atomically replaced outputs with identical bytes - #579

Open
ovvesley wants to merge 1 commit into
mainfrom
AKO-565
Open

ovvesley wants to merge 1 commit into
mainfrom
AKO-565

Conversation

@ovvesley

Copy link
Copy Markdown
Collaborator

Closes #565.

A cancelled attempt can leave a complete compressed file. The successful retry atomically replaces the file with byte-identical content. The runtime previously skipped it and workspace sealing classified it as an inherited input.

This change records a replacement when the file identity changes, even if its checksum and size match. Workspace sealing honors that output observation. Touching the timestamp of an existing input remains insufficient to create an output entry.

Provider, local provider, and control-plane execution tests passed, including regression fixtures for both observation and workspace classification. A full ngspice recovery run on a daemon with this patch remains pending.

@ovvesley

Copy link
Copy Markdown
Collaborator Author

Validated on an isolated Docker daemon with the patch. A probe wrote result.csv and was interrupted after the file appeared. The retry atomically replaced the leftover file, with the same SHA-256 in both snapshots. The recovered run completed on attempt 2 and reported exactly one result.csv catalog object and a modified output observation. This exercises the failing artifact mechanism with a single activity. The full ngspice recovery campaign is still pending.

@ovvesley
ovvesley marked this pull request as ready for review November 28, 2026 05:49

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recovered local run completes with missing batch artifact registrations

1 participant